package 空对象模式.java8Optional;

import java.util.Optional;

/**
 * 地址类
 **/
class Address {
	public Address(Country country) {
		this.country = country;
	}

	private Country country;

	public Optional<Country> getCountry() {
		return Optional.ofNullable(country);
	}

	public void setCountry(Country country) {
		this.country = country;
	}
}